If you are working on a Data management in D365FO you might find that enabling/disabling change tracking on data entities isn’t working. D365 will say that it’s been enabled or disabled but when you check the table in the DB nothing has changed and you get an error when exporting incremental that change tracking isn’t enabled. If you experience this issue, connect to the DB and find the stored procedure [dbo].[SP_ConfigureTablesForChangeTracking_V2] . Confirm that the database name in the stored proc is the same as the DB name that the D365 environment is using. If not, drop the proc, change the DB name in the stored proc to the same as the DB you’re using and create it again. If you have been moving databases between environment to refresh data you’ll most likely be affected by this.
An example on how to iterate a table field that is an array static void Job10(Args _args) { Dicttype dicttype; counter i; str test; ; test = "Client"; dicttype = new dicttype(132);//132 here is the id of edt dimension for (i=1;i<=dicttype.arraySize();i++) { if ( dicttype.label(i) == test) { break; } } print i; pause; }
Comments
Post a Comment