Trips / TripLegs tables are not being populated
wvmstr opened this issue · 3 comments
None of my trip related reports show any data. Show latest trips does not show anything either.
Looking in the db I see that tables Trips and TripLegs are empty.
Do your assets show points when you click "Show Points"?
If the answer is Yes and you still don't see any trips, then you will need to check to see if your Trip Detection is running.
- Go to your Azure Portal
- Find the Function App deployed with the name
{YOUR_DEPLOYMENT_NAME}Func
- Check under the 'Functions' tab. You should see two functions named
PipelineInitiator
andPipelineExecutor
. These are responsible for the trip detection. - If the 'Functions' tab is empty, then you will have to redeploy the Function App.
To re-deploy the function app:
- Go to the Bing Maps Fleet Tracker Deployment Portal.
- Sign in with the account you have your Azure subscription and deployment on. If you have multiple Azure subscriptions you will need to specify the one your deployment exists on.
- Enter the name of your deployment in the Deployment Name field. You should receive a prompt pointing you to an update link. Click on the update link. You will be redirected to the update page.
- Your deployment secrets that you entered previously will be pre-populated with their old values. Click the Deploy button and wait until the deployment finishes. This will not create a new deployment, but will update your existing one.
You should probably check again after the deployment finishes to make sure that your trip detection is running. You should notice that your assets have trips now, assuming they had tracked points.
Those two functions were not included included when I did the first deployment. Now they are there and some of those reports are being populated.
We have seen this happen before, will add it to the troubleshooting section.
Closing this issue for now.