Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Error in P-Job run.

(0) ShareShare
ReportReport
Posted on by 396

Hello Folks,

Wishing you Happy New Year !!!

I am getting error while run the P-Job. Basically it has changed the status to read failed.

pastedimage1673263327635v1.png

Error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()   at Microsoft.Dynamics.Retail.CommerceDataExchange.SqlSourceRequestHandler.ReseedLocalUploadSessionId(Int64 seedValue)   at Microsoft.Dynamics.Retail.CommerceDataExchange.SqlSourceRequestHandler.CreateLocalUploadSession(UploadSession uploadSessionToCreate)   at Microsoft.Dynamics.Retail.CommerceDataExchange.SqlSourceRequestHandler.CreateChannelData(String fullFilePath)   at Microsoft.Dynamics.Retail.CommerceDataExchange.SqlSourceRequestHandler.ProcessSourceRequest(SessionManager sessionManager)   at Microsoft.Dynamics.Retail.CommerceDataExchange.SqlSourceRequestHandler.GeneratePackageFromSourceDatabase(SqlSourceRequestContext sourceRequestContext)   --- End of inner exception stack trace ---   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)   at Dynamics.AX.Application.ReflectionHelper.`tryInvokeStaticMethodFromAssembly(Assembly _assemblyInstance, String _typeName, String _methodName, Object[] _params, Boolean @_params_IsDefaultSet)   at Dynamics.AX.Application.ReflectionHelper.tryInvokeStaticMethodFromAssembly(Assembly _assemblyInstance, String _typeName, String _methodName, Object[] _params, Boolean @_params_IsDefaultSet)   at Dynamics.AX.Application.ReflectionHelper.tryInvokeStaticMethodFromAssembly(Assembly _assemblyInstance, String _typeName, String _methodName, Object[] _params)   at Dynamics.AX.Application.RetailCDXJobUploadSourceContext.generatePackageFromSourceDatabase(Object _sourceRequestContextObject)   at Dynamics.AX.Application.RetailCDXJobUploadSourceContext.execute()

Thanks !!!

  • Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,597 on at
    RE: Error in P-Job run.

    Hi Pankaj,

    I would say you have some customization in P-job XML distribution file that says that data should come from DBO table, when DBO tables do not exist in Retail channel database.

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Error in P-Job run.

    Hi Pankaj,

    Because of this issue needs to be replicated and further investigated depending on conditions, I suggest you create a support ticket for professional assistance following the below procedure.

     Get Help + Support - Dynamics | Microsoft Docs

    Best Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans