This is a follow-up on https://community.dynamics.com/365/commerce/f/dynamics-365-commerce-forum/419018/how-to-run-standard-retail-on-a-development-environment
I had to upgrade the development environment from v10.0.15 to v10.0.18. This is a development environment with standard code, just our data instead of the demo data.
Because I did changes to the retail side like I would have done for my other development environments by copying the retailSDK as if I would have customized the retailSDK when it was on v10.0.15, I decided to delete the development environment and have it re-deployed and check to see if it works like Todd said it should.
So I didn't do any changes other than to apply the standard deployable package for v10.0.18, imported our DB and then deleted the channel DB in SSMS and then applied the latest hotfix v10.0.18 deployable package to create the channel DB again (step that is needed when the backup of the DB is from an environment with scale units). I ran the reprovisioning tool and then I started with the setup.
Initialize the scheduler, generated the queries for AX7 and then ran the full DB sync for the default channel DB. I made sure the batch job completed and that the download sessions were applied tot he default database.
I am able to log in successfully onto Cloud POS via LCS.
However the product search and customer search returns nothing.
Looking in SSMS and ran a select on [ax].custtable and [ax].ecoresproduct, I can see the products and customers. So the channel Db was updated.
When I open a cart and click on Add product and select the product via the hierarchy then it sees the product.
If I open Inventory lookup, enter a product number and click ok to retrieve its inventory, it finds the product and shows the inventory quantities.
If I look in developer tools I see that it calls the search , stated that it has started.
Then it gives the following: Retrieve available token failed for <URL> . AAD context initialized true, token length {3}.
then it shows that the search was successful and zero records were retrieved.
The URL is "https://commerce.dynamics.com". It is a URL that I can see in the UAT in Retail and Commerce > Headquarters setup > Parameters > Commerce shared parameters under the identity providers. It is there plus the URL for my site. So I assume it should be there.
So why would I get this token error? what does it mean?
What step is missing that it doesn't want to do the search?
On my development box where I have the retailSDK in the C-drive because I do customizations on that box, there it has no problem showing the products and customers when running Cloud POS from LCS.
.