--- title: "Get Event From File_ New" slug: "get-event-from-file-new" tags: ["ics", "event", "calendar"] updated: 2023-01-31T15:51:42Z published: 2023-01-31T15:51:42Z canonical: "documentation.decisions.com/get-event-from-file-new" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Event From File_ New | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.1.0 | | **Location** | Integration > ICAL > ICAL File | The **Get Event From File_ New** step takes a .ics file and outputs the Calendar Event data information. --- ### Prerequisites This step requires the iCal module to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Ics File Data | Desired .ics file to retrieve Calendar event information from | FileData | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | List of Calendar Event information in [iCalendar](https://icalendar.org/) format | DecisionsCalendarEvent | --- ## Example Inputs and Outputs | Ics File Data | Output | | --- | --- | | iCalendar.ics | List of event data | | Null | EXCEPTION MESSAGE | | Empty | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1674675436644.png) --- ## Common Errors ### Object reference not set to an instance of an object. If the Ics File is empty or null, the step will cause an error. To correct this, upload or map a .ics file to the input field. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Event From File_ New 1[GetEventFromFile_New] in flow [Flow 1]: Exception invoking method GetEventFromFile_New on class ICalSteps ---> DecisionsFramework.LoggedException: Exception invoking method GetEventFromFile_New on class ICalSteps ---> System.NullReferenceException: Object reference not set to an instance of an object. at Decisions.ICal.ICalSteps.GetEventFromFile_New(FileData icsFileData) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` ### Could not parse line: 'dtstart,dtend,dtstamp,organizer,uid,attendee,created,description,last-modified,location,sequence,status,summary,transp' If the file uploaded is not an ics file, the step will cause an error. To correct this, only upload or map a file with the .ics extension. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Event From File_ New 1[GetEventFromFile_New] in flow [Flow 1]: Exception invoking method GetEventFromFile_New on class ICalSteps ---> DecisionsFramework.LoggedException: Exception invoking method GetEventFromFile_New on class ICalSteps ---> System.Runtime.Serialization.SerializationException: Could not parse line: 'dtstart,dtend,dtstamp,organizer,uid,attendee,created,description,last-modified,location,sequence,status,summary,transp' at Ical.Net.Serialization.SimpleDeserializer.ParseContentLine(SerializationContext context, String input at Ical.Net.Serialization.SimpleDeserializer.Deserialize(TextReader reader)+MoveNext( at System.Linq.Enumerable.OfTypeIterator[TResult](IEnumerable source)+MoveNext( at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source at Ical.Net.Calendar.Load[T](TextReader tr at Ical.Net.Calendar.Load[T](Stream s, Encoding e at Decisions.ICal.ICalSteps.GetEventFromFile_New(FileData icsFileData) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` ## Related - [Create Event](/create-event.md) - [Cancel Event](/cancel-event.md) - [Get Week of Year by Calendar Type](/get-week-of-year-by-calendar-type.md)