Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I will create a new relation type on package installation in Umbraco 7.1.4. I use this package action:
<Action runat="install" undo="false" alias="ExecuteSql"><![CDATA[INSERT INTO umbracoRelationType (dual, parentObjectType, childObjectType, name, alias) VALUES (1, 'c66ba18e-eaf3-4cff-8a22-41b16d66a972', 'c66ba18e-eaf3-4cff-8a22-41b16d66a972', N'myRelation', N'myRelation');]]></Action>
But after package installation I have now new entry in the databasetable. The sql-statement in this package action works in MS Sql Management Studio. Only If I use this sql statement in in the package action nothing happens.
Has anyone an idea to solve this?
Best regards
Sören
Hi Sören,
The action works on V7.1.4. I'm using it in all my packages check the logfile to see the error and you need the Package action contrib dll http://our.umbraco.org/projects/backoffice-extensions/package-actions-contrib to use this action.
Hope this helps,
Richard
Hi RIchard,
thank you! I have forget the Package action contrib dll. Now it works :-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ExecuteSQL Action on package install not working
Hi,
I will create a new relation type on package installation in Umbraco 7.1.4. I use this package action:
But after package installation I have now new entry in the databasetable. The sql-statement in this package action works in MS Sql Management Studio. Only If I use this sql statement in in the package action nothing happens.
Has anyone an idea to solve this?
Best regards
Sören
Hi Sören,
The action works on V7.1.4. I'm using it in all my packages check the logfile to see the error and you need the Package action contrib dll http://our.umbraco.org/projects/backoffice-extensions/package-actions-contrib to use this action.
Hope this helps,
Richard
Hi RIchard,
thank you! I have forget the Package action contrib dll. Now it works :-)
Sören
is working on a reply...