I got an error on my project when saving the Application Map. I resolved the problem, but decided to I used the Verify and Save Application on my project - it produced the following error:
"Unable to generate rules for used services/data sources: Unable to find requested pattern"
The project still runs when i Run Test, and all does seem to be ok, but I'd just like to know which rules are causing the error. Is there any way to tell?
*****************
Full message below:
*****************
Successfully updated output file for page: BizFlowEntry
Successfully updated output file for page: Parameters
Successfully updated output file for page: Setup
Successfully updated output file for page: ItemTypes
Successfully updated output file for page: AddItemResult
Successfully updated output file for page: SearchResults
Successfully updated output file for page: History
Successfully updated output file for page: SLARetrieval
Successfully updated output file for page: SLAChange
Successfully updated output file for page: AddedContact
Successfully updated output file for page: AddNewContact
Successfully updated output file for page: FurtherInfo
Successfully updated output file for page: RefLogInfo
Successfully updated output file for page: Choice
Successfully updated output file for page: AmendChosen
Successfully updated output file for page: itemTypesForAmend
Successfully updated output file for page: locationList
Successfully updated output file for page: schemesByLocation
Successfully updated output file for page: isIndia
Successfully updated output file for page: amendRefLog
Successfully updated output file for page: blank1
Successfully updated output file for page: detailChange
Successfully completed server-side setup for: Parameters
Successfully completed server-side setup for: ItemTypes
Successfully completed server-side setup for: AddItemResult
Successfully completed server-side setup for: SearchResults
Successfully completed server-side setup for: History
Unable to generate rules for used services/data sources: Unable to find requested pattern
Successfully completed server-side setup for: SLARetrieval
Successfully completed server-side setup for: SLAChange
Successfully completed server-side setup for: AddedContact
Successfully completed server-side setup for: AddNewContact
Successfully completed server-side setup for: FurtherInfo
Successfully completed server-side setup for: RefLogInfo
Successfully completed server-side setup for: SetupDR
Unable to generate rules for used services/data sources: Unable to find requested pattern
Successfully completed server-side setup for: InitialLoad
Successfully completed server-side setup for: PrepAmend
Successfully completed server-side setup for: reloadAmend
Successfully completed server-side setup for: prepCreate
Successfully completed server-side setup for: itemTypesForAmend
Unable to generate rules for used services/data sources: Unable to find requested pattern
Successfully completed server-side setup for: locationList
Successfully completed server-side setup for: schemesByLocation
Successfully completed server-side setup for: isIndia
Successfully completed server-side setup for: amendRefLog
Successfully completed server-side setup for: blank1
Successfully completed server-side setup for: detailChange
"Unable to generate rules for used services/data sources: Unable to find requested pattern"
The project still runs when i Run Test, and all does seem to be ok, but I'd just like to know which rules are causing the error. Is there any way to tell?
*****************
Full message below:
*****************
Successfully updated output file for page: BizFlowEntry
Successfully updated output file for page: Parameters
Successfully updated output file for page: Setup
Successfully updated output file for page: ItemTypes
Successfully updated output file for page: AddItemResult
Successfully updated output file for page: SearchResults
Successfully updated output file for page: History
Successfully updated output file for page: SLARetrieval
Successfully updated output file for page: SLAChange
Successfully updated output file for page: AddedContact
Successfully updated output file for page: AddNewContact
Successfully updated output file for page: FurtherInfo
Successfully updated output file for page: RefLogInfo
Successfully updated output file for page: Choice
Successfully updated output file for page: AmendChosen
Successfully updated output file for page: itemTypesForAmend
Successfully updated output file for page: locationList
Successfully updated output file for page: schemesByLocation
Successfully updated output file for page: isIndia
Successfully updated output file for page: amendRefLog
Successfully updated output file for page: blank1
Successfully updated output file for page: detailChange
Successfully completed server-side setup for: Parameters
Successfully completed server-side setup for: ItemTypes
Successfully completed server-side setup for: AddItemResult
Successfully completed server-side setup for: SearchResults
Successfully completed server-side setup for: History
Unable to generate rules for used services/data sources: Unable to find requested pattern
Successfully completed server-side setup for: SLARetrieval
Successfully completed server-side setup for: SLAChange
Successfully completed server-side setup for: AddedContact
Successfully completed server-side setup for: AddNewContact
Successfully completed server-side setup for: FurtherInfo
Successfully completed server-side setup for: RefLogInfo
Successfully completed server-side setup for: SetupDR
Unable to generate rules for used services/data sources: Unable to find requested pattern
Successfully completed server-side setup for: InitialLoad
Successfully completed server-side setup for: PrepAmend
Successfully completed server-side setup for: reloadAmend
Successfully completed server-side setup for: prepCreate
Successfully completed server-side setup for: itemTypesForAmend
Unable to generate rules for used services/data sources: Unable to find requested pattern
Successfully completed server-side setup for: locationList
Successfully completed server-side setup for: schemesByLocation
Successfully completed server-side setup for: isIndia
Successfully completed server-side setup for: amendRefLog
Successfully completed server-side setup for: blank1
Successfully completed server-side setup for: detailChange
RE: Error when using Verify and Save Application
I+?+?+?m sorry you are getting these error messages reported. These look like errors with trying to generate initial rules in a controller for a used service or data source. If your project is working correctly then it is likely that you do not need these rules, and so these errors wont cause you any issues, but it would still be good to work out what is causing them and resolve it.
Do you have any controllers in your project for which there isn+?+?+?t a +?+?++Successfully completed server-side setup+?+?+? line output in the message you have provided?
If so, can you try selecting them on the Application Map and have a look at the Used Services list on the right hand side. If there are any old or incorrect entries here, trying removing them and see if that removes the error messages.
If all the controllers are listed, have a look at the Used Services lists for those around the error messages (eg History and SLARetrieval, SetupDR and InitialLoad, and itemTypesForAmend and locationList). Likewise if these have incorrect entries try removing them.
If these areas all look ok then we will need to investigate further. In this case would it be possible for you to send through an export of this project for us to look at?
Regards,
Gerard
RE: Error when using Verify and Save Application
I've checked that all the controllers are present, and they are all fine. Likewise, the services used seem ok. I've sent an export of the project to you.
Thanks
RE: Error when using Verify and Save Application
Thanks for sending through the project. I have had a look at it, and can replicate the errors you are seeing.
For some reason it looks like some of the metadata for the application map has got out of sync. Within the application.xml file there are references to three partial page controllers (Amend, blank, and newSLA) that don+?+?+?t seem to exist any more. It is these entries that are causing the errors when you use the Save and Verify operation.
Assuming that this is left over information, you should be able to just remove it from the file. To do this, make sure you don+?+?+?t have the project open in the studio, and then open up the +?+?+++?+?-?/application/application.xml+?+?+? file for this project from the repository in a text editor.
In this file you should find a <handler> element tag (3 lines) for each of these out of date names, which you should delete. For me these seem to start on lines 230, 254, and 272 of this file, but it may not be exactly the same for you.
Once these have been removed you can open the project back up in the studio, and you shouldn+?+?+?t get any more errors when you click Verify and Save.
I+?+?+?m not sure what caused the data to get out of sync, but hopefully this should get you back working successfully.
Regards,
Gerard
RE: Error when using Verify and Save Application
I've found and removed the entries from the Application.xml file. The Verify and Save now works as expected. Thanks.
The entries I removed related to partial pages that I'd had on the Application Map, but removed using the standard delete functionality. Is there any reason that this wouldn't have properly tidied up after itself? I have had similar issues in the past with deleting an action, then when trying to put a new action with the same name back in (to a different PP) getting an error. Obviously then the easy workaround was to use a different name.
Thanks
RE: Error when using Verify and Save Application
I+?+?+?m glad you managed to get it working.
All these entries should have been removed automatically when you deleted the partial pages, but I guess something went wrong in this case. I am not sure why this would be, but if you are able to replicate this problem in the future it would be very useful to know the steps so we can try and track it down.
Likewise for the action problems, as although we are continually looking to improve the reliability of these sorts of things, we know there might still be some issues.
Many thanks,
Gerard