Skip to main content
Question

Integration Unexpected internal server error occurred


Forum|alt.badge.img+10
  • Sidekick (Customer)
  • 51 replies

I have created a post action which takes a structure parameter which looks like below defined in the fragment file.

structure OrderQuotationLineRequest {
   nestedwithcrud = ReadAndWrapWithJson;
   implementation = "utility";
   attribute SalesPartNo Text;
   attribute Quantity Integer;
}

structure OrderQuotationRequest {
   nestedwithcrud = ReadAndWrapWithJson;
   implementation = "utility";
   attribute CustomerId Text;
   attribute WantedDeliveryDate Date;
   attribute ShipAddrNo Text;
   attribute BillAddrNo Text;
   attribute OnlineQuoteNo Text;
   attribute Lines List < Structure(OrderQuotationLineRequest) > ;
}

Projection action declaration looks like below

action CreateSalesQuotation {
   initialcheck none;
   parameter QuotationRequest Structure(OrderQuotationRequest);
}

When trying to call this method I get this error using Postman

{
    "error": {
        "code": "UNEXPECTED",
        "message": "Unexpected internal server error occurred."
    }
}

The payload is like below.

{
    "QuotationRequest": {
        "CustomerId": "xxx",
        "WantedDeliveryDate": "2023-06-01",
        "ShipAddrNo": "xxx",
        "BillAddrNo": "xxx",
        "OnlineQuoteNo": "365455",
        "Lines": [
            {
                "SalesPartNo": "xxxx",
                "Quantity": 1
            }
        ]
    }
}

If I remove the Lines from the payload, it works without any problem. Any idea how I can check the logs and fix this issue?

 

3 replies

Forum|alt.badge.img+14
  • Superhero (Employee)
  • 177 replies
  • June 1, 2023

@bhavesh 

Hi Bhavesh,

Can you check the Odata log. As I know it should have print the error call stack.

 

Regards,

Sahan


Forum|alt.badge.img+10
  • Author
  • Sidekick (Customer)
  • 51 replies
  • June 1, 2023
Sahan Udana wrote:

@bhavesh

Hi Bhavesh,

Can you check the Odata log. As I know it should have print the error call stack.

 

Regards,

Sahan

Any idea where I can find these logs?


Forum|alt.badge.img+14
  • Superhero (Employee)
  • 177 replies
  • June 1, 2023

Usually logs are in the cloud. You can use a tool like Kibana to fetch the data. If your servers hosted in ifs cloud you can raise a ticket to get the relevant log files . Also mention the timestamp as well. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings