cancel
Showing results for 
Search instead for 
Did you mean: 

Error 401: unauthorized in DMC services in design Production POD in SAP DMC

yash_vijay
Explorer
0 Kudos

Hi,

I have designed a production process which consumes the SAP DMC standard service "Create Material".

While trying to run the service , i am getting error 401: Unuthorized.

Inputs are being accepted clearly.

Please help me understand if i am missing something here.

Also, How can we set session variables in case of Standard SAP Dm services for authorizations.

View Entire Topic
ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Double check your SAP_DMC_DEFAULT_SERVICE_KEY Destination in BTP Cockpit, see https://help.sap.com/docs/sap-digital-manufacturing/production-process-designer/create-destination-f... for more details.

Br,

Manoel

yash_vijay
Explorer
0 Kudos

Hi Manoel,

Greetings!!

Thanks for your response,

I have checked my BTP destination. It is giving 302 in response.

Could you please help me with anything else i should check?

ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Kudos

It should return 200: OK.

The 302 status code is a redirection message that occurs when a resource or page you're attempting to load has been temporarily moved to a different location. It's usually caused by the web server and doesn't impact the user experience, as the redirect happens automatically.

So most probably your Destination details are wrong and you must review it.

Check https://help.sap.com/docs/sap-digital-manufacturing/production-process-designer/create-destination-f... for more details.

Br,

Manoel

yash_vijay
Explorer
0 Kudos

Hello Manoel,

Still the same error,

Could you please help me,

Best regards,

Yash Vijay