jbaisch
New member
- Joined
- Apr 7, 2016
- Messages
- 8
- Reaction score
- 0
- Points
- 0
- Location
- Arizona, USA
- Excel Version(s)
- 2010 and 2016
Current code:
Error:
DataSource.Error: Oracle: ORA-01843: not a valid month
Details:
DataSourceKind=Oracle
DataSourcePath=briad.db.ct
Message=ORA-01843: not a valid month
ErrorCode=-2146232008
Code:
let
SDate = Date.ToText(Date.From(fnGetParameter("SDate")),"mm/dd/yyyy"),
varQuery = "select s.location_id,s.POS_date, s.pos_file_name, l.location_code,l.location_name from t_inv_hdr_pos s join t_location l on s.location_id = l.location_id where s.POS_date > to_date('" & SDate & "','mm/dd/yyyy')",
Source = Oracle.Database("BRIAD.DB.CT", [Query=varQuery]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"POS_DATE", type date}})
in
#"Changed Type"
Error:
DataSource.Error: Oracle: ORA-01843: not a valid month
Details:
DataSourceKind=Oracle
DataSourcePath=briad.db.ct
Message=ORA-01843: not a valid month
ErrorCode=-2146232008