Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields of type "address" are not supported #8

Open
urig opened this issue Mar 6, 2017 · 10 comments
Open

Fields of type "address" are not supported #8

urig opened this issue Mar 6, 2017 · 10 comments

Comments

@urig
Copy link

urig commented Mar 6, 2017

Steps to reproduce:

  1. Given a QB App with a Table that has a Field of type "address",
  2. Login to QB and connect to the App like so:
    var client = Intuit.QuickBase.Client.QuickBase.Login("username", "password", "domain");
    var app = client.Connect("app_id");

Expected behavior:

The variable app should contain a valid instance of IQApplication.

Actual behavior:

ArgumentException is thrown from Intuit.QuickBase.Client.QTable.LoadColumns() (line 305)

Root cause:

The exception is thrown when line 305 hits a field where columnNode.GetAttribute("field_type", String.Empty) is "address". The enum FieldType has no corresponding value so the exception is thrown.

@wmarrone
Copy link

I had the same issue when trying to implement in our Business. Any fixes?

@jherig
Copy link

jherig commented Mar 27, 2018

This repo hasn't been updated in 5 years. I have attempted to correct several problems and make programming easier in my fork and would appreciate feedback in what I've been doing.

@wmarrone
Copy link

wmarrone commented Mar 27, 2018 via email

@jherig
Copy link

jherig commented Mar 27, 2018

I do have a fix for the ViewTooLarge in my fork, although it does have to result to a 'fallback and split query' which adds quite a few extra API calls and time... unfortunately the API doesn't allow any way to guess when a ViewTooLarge will occur. Let me know if I can help.

@wmarrone
Copy link

wmarrone commented Mar 27, 2018 via email

@jherig
Copy link

jherig commented Mar 27, 2018

Perhaps I wasn't quite clear... my code does stitch the subqueries back together. It just takes a lot longer that in should, and uses quite a few extra API calls which can matter depending on your QB subscription.

@wmarrone
Copy link

wmarrone commented Mar 27, 2018 via email

@Shannonb1
Copy link

getting this multitext error using your fork

var type =
(FieldType) Enum.Parse(typeof(FieldType), columnNode.Attribute("field_type").Value, true);

the error
System.ArgumentException: 'Requested value 'multitext' was not found.'

@jherig
Copy link

jherig commented Feb 26, 2019

Ah, thanks for reminding me about handling that field type. I don't recall the reason I put it off, but I think it had something to do with problems writing a test case for it. I'll see what I can do this week to at least support fields created via the webGUI.

@Shannonb1
Copy link

I added this to fieldtype.cs to solve

    /// <summary>
    /// Text-Multi-Line
    /// </summary>
    multitext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants