WELCOME TO THE COMMUNITY
find what you are looking for or ask a new question
Home > Forum > Latest posts

latest posts

I try to add attachments from other flow using standard Action add attachment ...
in theory is working:

https://community.webcon.com/posts/post/the-add-attachment-action/156/18
or
https://docs.webcon.com/docs/2023R3/Studio/Action/Attachments/Action_AddAttachment

but not in my case :/ and I don't know why ...

"Wystąpił błąd wykonania akcji Dodaj załącznik na przycisk w menu.
Błąd wykonania akcji typu dodaj załącznik: Dodaj załącznik.
Object reference not set to an instance of an object."

the flow ID from where I would lite copy attachments is = 20008

I try use tech_filed set as text or drop down list ... and all time failure
if in tech field I have "20008"
then "Object reference not set to an instance of an object."

if I have signature of flow "ZAM/2024/03/00188"
then "The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction."

if I do SQL
SELECT [ATT_ID] FROM [WFDataAttachmets] where ATT_WFDID='{2592}'
and in test field is "20008" then I see in designer 4 attachments

but in action from (menu button) -> error .. the same



(in theory maybe what I need) [how to find in flow ID of Attachment ? ]
-edit --
>> SELECT * FROM [WFDataAttachmets] where ATT_WFDID='{2592}'
OK I have what I looking for [in design studio] , but ... action is not working in flow :/ (gives error)

What I'm missing ?

btw:
I do continuation from that topic:
https://community.webcon.com/forum/thread/4702

I have all data, added Item list ... just attachments left :/

Hello Everyone
I have to change sdk Custom Action class (not my code) from version 2019 to 2021. In old CustomAction was used HostingEnvironment.Impersonate() and I have also used this in 2021 version, but it generates error:

Method not found: 'WebCon.WorkFlow.SDK.Documents.Model.Base.ReadOnlyEntitiesCollection`1 WebCon.WorkFlow.SDK.Documents.Model.NewDocumentData.get_TextFields()'.
System.MissingMethodException

at WebCon.SRC.CustomActions.ADEmployeeSID.Run(RunCustomActionParams args)
at WebCon.WorkFlow.SDK.ActionPlugins.CustomAction`1.WebCon.WorkFlow.SDK.Interfaces.ActionPlugins.ICustomAction.Run(IRunCustomActionParams parms)
at WebCon.WorkFlow.Base.DataHelpers.SDK.SDKPluginLogger.ExecuteWithLogs(Action action, Boolean saveLogs, Func`1 isSucces)
at WebCon.WorkFlow.Base.Actions.PluginExecute.FireAction(InternalWorkFlowObject wfObject, IWFAction wfAction, ITagParser tagParser, String& message, String& logMessage)
at WebCon.WorkFlow.Base.Managers.Actions.ActionManager.FireActionWithUsageLog(IWFAction currentAction, String& message, String& logMessage, ActionBase action, InternalWorkFlowObject workflowObject, ITagParser tagParser)
at WebCon.WorkFlow.Base.Managers.Actions.ActionManager.FireSingleAction(InternalWorkFlowObject workFlowObject, String actionTypeName, Boolean canPathChange, Boolean checkInsertToPendingActions, FireActionsSummary fireActionsSummary, IWFAction action)
at WebCon.WorkFlow.Base.Managers.Actions.ActionManager.FireActions(IEnumerable`1 actionsToFire, InternalWorkFlowObject workFlowObject, String actionTypeName, Boolean canPathChange, Boolean checkInsertToPendingActions, FireActionsSummary fireActionsSummary, IActionMessageCreator actionMessageCreator)

Which method I should use instead ?
I have to do in this way because, I need to look up through Active Directory from code.
Thanks in advance for the hints!

MVP

Hi,
This approach is not recommended. Additionally,
the attached data is stored in the [dbo].[WFAttachmentFiles] table within the attachment database linked to the process.
If you occasionally need to restore a deleted attachment, it's advisable to download its latest version from the history in administrative mode and re-add it 'normally'.
However, if this situation occurs frequently, I strongly advise reassessing your process and finding an alternative solution to meet this requirement.
e.g. using API

Regards.

In reply to: Dariusz Tułacz

Adding a mass notification schedule resolved the issue. However, I don't understand why it was required?

MassNotificationSchedules  (for db: BPS_Content )

Hi Darek,
I would check two things. But not sure if this will answer your question. :)

1. Firewall - if port 8002 is enabled. It is responsible for portal - service connection (details: https://community.webcon.com/posts/post/configuring-portal-service-communication-and-selecting-nettcp-protocol/335/3).
2. Check settings of mass notification (attached file for guidance).

Best.