Hi Everyone,
Hope all are doing well.
Please help me to solve the below error.
I have created a custom table in the channel database with ext schema. My requirement is to pull data from the channel database to HQ database.
For this i have attached this in the existing P-Job. When i am running the p-job, we are getting the below error.
Microsoft.Dynamics.Ax.Xpp.ErrorException: Error occurred in this data upload worker. Last error message: Cannot insert multiple records in LTOperationAuthenticateTable (LTOperationAuthenticateTable). The SQL database has issued an error. Object Server Azure: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The column name 'CREATEDDATETIME' is specified more than once in the SET clause or column list of an INSERT. A column cannot be assigned more than one value in the same clause. Modify the clause to make sure that a column is updated only once. If this statement updates or inserts columns into a view, column aliasing can conceal the duplication in your code. INSERT INTO LTOPERATIONAUTHENTICATETABLE (CHANNEL,CREATEDDATETIME,LINENUM,LOGONUSERID,MANAGERID,NAME,REPLICATIONCOUNTERFROMORIGIN,RETAILOPERATIONTRANSACTIONID,RETAILOPERATIONTYPE,STORE,TERMINAL,TRANSACTIONLEVEL,CREATEDDATETIME,DATAAREAID,RECVERSION,PARTITION,RECID)SELECT F1,CREATEDDATETIME,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,CREATEDDATETIME,DATAAREAID,RECVERSION,PARTITION,RECID+5637145330 FROM [##ax_tmp_usrt4315_107_23385] session 4315 (D365DEV4) CDX upload subjob encountered an error while merging the transferred records to the target AX table. CDX subjob encountered an error while applying upload packet. CDX job P-0001 encountered an error while applying package for upload session 22. Upload session 22 failed: CDX job P-0001 encountered an error while applying package for upload session 22. at Dynamics.AX.Application.RetailCDXDataUpload_AX7.`uploadFromClient() in xppSource://Source/Foundation\AxClass_RetailCDXDataUpload_AX7.xpp:line 50 at Dynamics.AX.Application.RetailCDXDataUpload_AX7.uploadFromClient() at Dynamics.AX.Application.RetailCDXDataUpload_AX7.`run() in xppSource://Source/Foundation\AxClass_RetailCDXDataUpload_AX7.xpp:line 8 at Dynamics.AX.Application.RetailCDXDataUpload_AX7.run() at Dynamics.AX.Application.SysOperationSandbox.`startOperation(SysOperationIMarshalledRun operationInstance) in xppSource://Source/ApplicationPlatform\AxClass_SysOperationSandbox.xpp:line 100 at Dynamics.AX.Application.SysOperationSandbox.startOperation(SysOperationIMarshalledRun operationInstance) at Dynamics.AX.Application.Runbase.`runOperation() in xppSource://Source/ApplicationPlatform\AxClass_Runbase.xpp:line 804 at Dynamics.AX.Application.Runbase.runOperation() at Dynamics.AX.Application.RetailCDXScheduleRunner.`runUploadTask(Int64 _dataGroupRecID, String _jobID, Int64 _lastSyncVer) in xppSource://Source/Foundation\AxClass_RetailCDXScheduleRunner.xpp:line 759 at Dynamics.AX.Application.RetailCDXScheduleRunner.runUploadTask(Int64 _dataGroupRecID, String _jobID, Int64 _lastSyncVer) at Dynamics.AX.Application.RetailCDXScheduleRunner.`processRegular() in xppSource://Source/Foundation\AxClass_RetailCDXScheduleRunner.xpp:line 335 at Dynamics.AX.Application.RetailCDXScheduleRunner.processRegular() at Dynamics.AX.Application.RetailCDXScheduleRunner.`run() in xppSource://Source/Foundation\AxClass_RetailCDXScheduleRunner.xpp:line 449
Thanks in advance....