I’ve been unable to reproduce the issue so far, could you please share with me the content of the custom field definitions that are not exported correctly?
Also, you stated that the issue appears on segments. Does it also appear on the base collection export?
Order Items are being returned.
[model, model, model, model, model, model, model, model, model, model]
In my model.orders I have the following
Orders.hasMany(models.orderItems);
Inside of my model.order_items i have the following:
OrderItems.belongsTo(models.orders);
Order Items has the order_id field.
Just exporting doesn’t return anything.
With that said, I spent enough time troubleshooting and debugging. I decided to just add these fields to my database and have my applications calculate them.
As we cannot reproduce the issue (ie we can export data with full Smart Fields values), it will be hard to find a solution without your help.
My first question is which version of the forest-express-sequelize agent does your server use?
If your server is up-to-date, then we need to dig into the units, total_price, sub_totat_price computation logic to understand why in the export context the values are not returned.
You can easily use debuggers / logs in the get functions of your Smart Fields, then trigger export actions and see what happens.