SDITools / adobeanalyticsr

R Client for Adobe Analytics API v2.0
Other
18 stars 9 forks source link

aa_freeform_table fails if include_unspecified=FALSE and unspecified values are returned #1

Closed gilliganondata closed 3 years ago

gilliganondata commented 3 years ago

The current default for aa_freeform_table() is include_unspecified=FALSE. However, if a call is made where there are Unspecified values returned, the function fails.

benrwoodard commented 3 years ago

I'm not so sure this is true anymore. I ran a few queries with "FALSE" and didn't have any problems.

benrwoodard commented 3 years ago

#failedtestcase dr <- c("2020-07-01", "2020-10-26") date_range <- dr dimensions <- c('sitesections') metrics <- c( "visits") metricSort <- 'desc' top <- c(50000) include_unspecified <- FALSE search = NA When unspecified is included the data will show unspecified but when it is False then there is no data and the 'totalElements' shows 0. Need to figure out a way to handle that instead of attempting to mutate on list that has 0 elements.

benrwoodard commented 3 years ago

Solved by using error handling. The solution stops the API calls with information about the error.