26
Views
10
Comments
Solved
Order Identifier data type required instead of decimal

Hi still very new with outsystems. While completing the Order Management application I set the name of the assign and set the value. However when i go to set the value it states that I hav the wrong data type. Im not sure where i messed up at as I have been following the steps verbatim. All help is appreciated 


Screenshot 2025-01-18 at 11.35.30 AM.png
2024-12-02 13-16-47
Vipin Yadav
Solution

Hi @Jezreel Miller ,

The document mentions it correctly, and I have highlighted the relevant section in the image below regarding the amount assignment. Please check. 

  

If possible please share your oml file i will do the changes and let you know.

Thanks,

Vipin Yadav

2026-01-28 16-57-48
Mihai Melencu
Champion

Hello @Jezreel Miller ,

It seems that you're trying to assign the Amount (a Decimal value resulting from the calculation Quantity * Price) to the OrderId field, which expects an Order Identifier data type. 

This is causing the data type mismatch error. To fix this, make sure you are assigning the calculated Amount to a field or variable that is of type Decimal (e.g., Amount), and ensure the OrderId is being assigned an appropriate identifier value, such as GetOrderItemById.List.Current.OrderItem.OrderId.

Let me know if you need additional help!

UserImage.jpg
Jezreel Miller

Hi Mihai, thank you fo your response i will give it a shot and let you know the results :)

2024-12-02 13-16-47
Vipin Yadav

Hi @Jezreel Miller ,

You are doing wrong assiment for Quanity * Price, you are assigning this value in order id

Correct way is you can assigne  Quanity * Price  in the amount.  

example -  

GetOrderitemByld.List.Current.Orderitem.Amount  = GetOrderitemByld.List.Current.Orderitem.Quanity * GetItemyid.List.Current.Item.Price  

Thanks, 

Vipin Yadav


UserImage.jpg
Jezreel Miller

hi thanks for the info. if i am doing it wrong then that would me something is off with the steps they hve provided me with. I followed them exactly. I will give your method a try in a few and let you know. thank. you for your help. Attached below is the instructions i was following

Screenshot 2025-01-18 at 12.06.20 PM.png
2024-12-02 13-16-47
Vipin Yadav
Solution

Hi @Jezreel Miller ,

The document mentions it correctly, and I have highlighted the relevant section in the image below regarding the amount assignment. Please check. 

  

If possible please share your oml file i will do the changes and let you know.

Thanks,

Vipin Yadav

UserImage.jpg
Jezreel Miller

Thank you I appreciate your help. When i return home I will share my OML file

UserImage.jpg
Jezreel Miller

You are the man, I have corrected it. Thank you for your assistance, until next time!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.